/**
 *
 * @description:
 * @author:junyong.hong
 * @createTime:2018/1/6
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */
define([
    'angularAMD',
    'config'
],function (angularAMD,app) {
    'use strict';

    app.provider('factoryRouter',function ($stateProvider,$urlRouterProvider) {
        this.$get = function () {
            var service,CURRENT_PATH = 'components/module/factory/';

            service = {
                'setRouter':function () {
                    $stateProvider
                        .state('index.qsHttp',angularAMD.route({
                            url:'/qsHttp',
                            templateUrl:CURRENT_PATH + 'qsHttp/qsHttp.html',
                            controllerAs:'vm',
                            controllerUrl:CURRENT_PATH + 'qsHttp/qsHttp.controller.js',
                            controller:'qsHttp.controller'
                        }))
                }
            };
            return service;
        }
    }).run(function (factoryRouter) {
        factoryRouter.setRouter();
    })


});
